//
//  KXTimer.h
//  ShangPin
//
//  Created by HaiJiao Chen on 12-4-12.
//  Copyright (c) 2012年 kaixin001.com. All rights reserved.
//

#import <Foundation/Foundation.h>
//系统的NSTimer会retain target，导致循环引用，无法释放，所以我自己写一个Timer，他不会retain target
@interface KXTimer : NSObject
{
    id target;
    SEL selector;
    NSTimer* timer;
}
+ (KXTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector forMode:(NSString *)mode;
- (void)invalidate;
@end
